package com.triones.yjj.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.triones.yjj.entity.StaffDO;
import com.triones.yjj.entity.WithdrawalRecordDO;
import com.triones.yjj.entity.vo.WithdrawalRecordCustomVO;
import com.triones.yjj.entity.vo.WithdrawalRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 提现明细 mapper 接口
 *
 * @Author: triones
 */
public interface WithdrawalRecordMapper extends BaseMapperPlus<WithdrawalRecordMapper, WithdrawalRecordDO, WithdrawalRecordVO> {

    /**
     * 统计正在提现金额
     * @param userId
     * @return
     */
    String inProgressWithdrawalTotal(@Param("userId") Long userId);

    /**
     * 超管查询商户提现列表
     * @param build
     * @param wrapper
     * @return
     */
    Page<WithdrawalRecordCustomVO> adminWithdrawalPageList(@Param("page") Page<Object> build,@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);

    /**
     * 超管查询商户提现列表
     * @param wrapper
     * @return
     */
    List<WithdrawalRecordCustomVO> adminWithdrawalList(@Param(Constants.WRAPPER) QueryWrapper<Object> wrapper);
}
